package Work2;

import java.util.Scanner;

public class Pro2 {
	
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		
		while (true) {
			StringBuilder stringBuilder = new StringBuilder();
			int n = in.nextInt();
			int x = in.nextInt();
			int y = in.nextInt();
			for (int i = 0; i < n; i++) {
				stringBuilder.append(i);
			}
			stringBuilder.delete(0, x);
			System.out.println(stringBuilder.delete(y-x,stringBuilder.length()));

		}
	}
}
